pippo = the memberNum of sprite the currentSpriteNum
pluto = pippo + 1
paperino = pippo + 2
propertyDescriptionList = [#pCastORIG: [#comment: "Numero elemento del Cast di origine del bottone", #format: #integer, #default: pippo], #pCastFB1: [#comment: "Numero elemento del Cast del primo feedback", #format: #integer, #default: pluto], #pCastFB2: [#comment: "Eventuale numero elemento del Cast del secondo feedback", #format: #integer, #default: paperino]]
return propertyDescriptionList
end
on mouseEnter me
if the memberNum of sprite the currentSpriteNum <> pCastFB1 then
gtasto = 0
set the memberNum of sprite the currentSpriteNum to pCastFB1
cursor(280)
updateStage()
else
gtasto = 1
end if
end
on mouseLeave me
if gtasto = 0 then
set the memberNum of sprite the currentSpriteNum to pCastORIG
cursor(-1)
updateStage()
end if
end
on mouseDown me
if gtasto = 0 then
cursor(280)
repeat while the stillDown
set the memberNum of sprite the currentSpriteNum to pCastFB2